package syllabus.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import syllabus.dao.PGroupRoleMapper;
import syllabus.model.Criteria;
import syllabus.model.PGroupRole;
import syllabus.service.PGroupRoleService;

@Service
public class PGroupRoleServiceImpl implements PGroupRoleService {
    @Autowired
    private PGroupRoleMapper pGroupRoleMapper;

    private static final Logger logger = LoggerFactory.getLogger(PGroupRoleServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.pGroupRoleMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public PGroupRole selectByPrimaryKey(Integer id) {
        return this.pGroupRoleMapper.selectByPrimaryKey(id);
    }

    public List<PGroupRole> selectByExample(Criteria example) {
        return this.pGroupRoleMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(Integer id) {
        return this.pGroupRoleMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PGroupRole record) {
        return this.pGroupRoleMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(PGroupRole record) {
        return this.pGroupRoleMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.pGroupRoleMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(PGroupRole record, Criteria example) {
        return this.pGroupRoleMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(PGroupRole record, Criteria example) {
        return this.pGroupRoleMapper.updateByExample(record, example);
    }

    public int insert(PGroupRole record) {
        return this.pGroupRoleMapper.insert(record);
    }

    public int insertSelective(PGroupRole record) {
        return this.pGroupRoleMapper.insertSelective(record);
    }
}